package com.jinjia.ordersys.dao;

import com.jinjia.ordersys.domain.Person;

import com.jinjia.ordersys.dto.PersonDto;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @Description: 人员-操作接口
 * @Param:
 * @return:
 * @Author: fenghouzhi
 * @Date: 2018/10/11
 * @Time: 4:23 PM
 */
public interface PersonMapper {

    List<Person> getAllPersonForBase();

    Person getPersonInfoByOpenid(@Param("openId") String openId);

    Person getPersonInfoByPersonId(@Param("personId") Long personId);

    Integer addPerson(Person person);

    List<PersonDto> getNotBindPersons(@Param("searchName") String searchName);

    Integer updatePersonInfo(Person person);

    List<Person> getAllPersonForSaleType();

}
